package com.lzh.shijicloudstack.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzh.shijicloudstack.model.entity.CalendarRecord;
import com.lzh.shijicloudstack.model.vo.calendarRecord.CalendarRecordVO;

import java.util.List;


/**
 * 日历记录数据库访问层
 *
 * @author luzhiheng
 * @since 2025-04-07 16:14:28
 */
public interface CalendarRecordMapper extends BaseMapper<CalendarRecord> {

    /**
     * 根据日期范围查询日历记录
     *
     * @param userId    用户id
     * @param beginDate 开始日期
     * @param endDate   结束日期
     * @return 日历记录列表
     */
    List<CalendarRecordVO> selectByDateRange(Long userId, String beginDate, String endDate);
}

